import service from '@/utils/request'

export function getActivityList(params) { // 获取活动列表
    return service({
        url: '/activity/list',
        method: 'get',
        params
    })
}

export function publishActivity(data) { // 发布活动
    return service({
        url: '/activity/publish',
        method: 'post',
        data
    })
}
